<template>
  <div class="row">
    <div class="row title">radio单选框 <span class="gray">（基于原生input封装）</span></div>
    <div class="row">
      <dw-radio class="radio" v-model="radio1" :label="1">我爱学习</dw-radio>
      <dw-radio class="radio" v-model="radio1" :label="2">我爱摸鱼</dw-radio>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      radio1: 1,
    };
  },
};
</script>
<style scoped>
.row {
  margin-bottom: 20px;
}
.gray {
  font-size: 0.7em;
  color: #999;
}
.radio {
  margin-right: 20px;
}
</style>
